package com.kws.common.core.enums;

import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;

public enum ChannelEnum {
    CHANNEL_USER_MIN("userMin","用户小程序"),
    CHANNEL_MERCHANT_MIN("merchantMin","商家小程序"),
    CHANNEL_SHIFT("shift","移动端");



    private String key;
    private String value;

    ChannelEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return key;
    }
    public String getValue() {
        return value;
    }
    private static final Map<String, String> KEYMap = new HashMap<String, String>();

    static {
        for (ChannelEnum e : EnumSet.allOf(ChannelEnum.class)) {
            KEYMap.put(e.getKey(), e.getValue());
        }
    }

    @Override
    public String toString() {
        return this.key;
    }
}
